import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * Classe principal, esta classe principia muita coisa.
 *
 */
public class Main extends Application {

    @Override
    public void start(Stage stage) throws Exception{
        stage.setTitle("Visualizador de Paineis");
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("menu_cafes.fxml"));
        fxmlLoader.setController(new MenuCafesController());
        try {
            Parent painel = (Parent) fxmlLoader.load();
            stage.setScene(new Scene(painel));
            stage.show();
        } catch (IOException exception) {
            throw new RuntimeException(exception);
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
}
